package org.lisen.patterndemo.factory.simplefactory;

public class Main {

    public static void main(String[] args) {
        Duck donaldDuck = DuckFactory.getInstance(DuckFactory.DONALD_DUCK);
        donaldDuck.quack();

        Duck wildDuck = DuckFactory.getInstance(DuckFactory.WILD_DUCK);
        wildDuck.quack();
    }

}
